package com.fhMall.api;

import com.fh.modules.oms.vo.ShoppingCarVo;
import org.springframework.web.bind.annotation.*;

/**
 * 程序名：.java<br>
 * 程序功能 <br>
 * 作成者：xianlin <br>
 * 日期：2019-10-17 9:55<br>
 * 修改履历 <br>
 * 项目名    状态      作成者      日期   <br>
 * --------------------------------------- <br>
 * 新规      xianlin   2019-10-17 9:55 <br>
 * ----------------------------- <br>
 */
public interface ShoppingCarFacade {

    @GetMapping("/oms/omsShoppingCar/list")
    @ResponseBody
    String queryShoppingCarList(@RequestParam("memberId") Integer memberId,
                                @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
                                @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize);

    @PostMapping("/oms/omsShoppingCar/add")
    @ResponseBody
    String saveShoppingCar(@RequestBody ShoppingCarVo shoppingCarVo);

    @DeleteMapping("/oms/omsShoppingCar/deleteBatch")
    @ResponseBody
    String deleteShoppingCar(@RequestParam(name = "ids") String ids);

}
